﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace BLL
{

    public interface IRoleRepository
    {


        List<Role> GetAllRole(string roleName, int status);

        List<Role> GetAllUserRole();

        void DeleteRole(int roleId);

        void BatchUpdateRoleStatus(List<Role> roleList);

        Role GetRoleById(int roleId);

        List<Status> GetAllRoleStatus();

        Status GetRoleStatusById(int statusId);

        void UpdateRole(Role role);

        void AddNewRole(Role role);

        List<Role> SearchRole(string roleName, string status, string authorities, string sortExpression, string sortDirection, double PageSize, int PageIndex, out int pageCnt);
        

    }
}
